home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / mkscsidev / mkscsidev.shar / mkscsidev.man < prev   
Text File  |  1990-03-16  |  4KB  |  108 lines

  1. '\" Copyright 1989 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/cmds/mkscsidev/RCS/mkscsidev.man,v 1.2 90/01/11 15:10:03 jhh Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS MKSCSIDEV cmds
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. mkscsidev \- Create scsi devices.
  17. .SH SYNOPSIS
  18. \fBmkscsidev\fR [\fIoptions\fR] \fIdeviceName\fR
  19. .SH OPTIONS
  20. .IP "\fB\-server \fIserverID\fR" 15
  21. \fIServerID\fR is the Sprite ID of the server for the device.
  22. The default is to set up the device to use the local host.
  23.  
  24. .IP "\fB\-hbaType \fIhbaType\fR" 15
  25. \fIHbaType\fR is the numeric identifier for the type of HBA associated
  26. with the device. The default is 0. 
  27. The following are valid hba types: SCSI3 = 0; DecStation 3100 = 0; SCSI0 = 1;
  28. JAGUAR = 2.
  29.  
  30. .IP "\fB\-devType \fIdeviceType\fR" 15
  31. \fIDevType\fR is the numeric identifier for the type of device.
  32. The default is 4 (SCSI disk).
  33.  
  34. .IP "\fB\-hba \fIhba\fR" 15
  35. \fIHba\fR is the id of the hba controller that the scsi device is connected to.
  36. The default is 0.
  37.  
  38. .IP "\fB\-target \fItarget\fR" 15
  39. \fITarget\fR is the scsi target id of the scsi device.
  40. The default is 0.
  41.  
  42. .IP "\fB\-lun \fIlun\fR" 15
  43. \fILun\fR is the scsi logical unit number of the scsi device.
  44. The default is 0.
  45.  
  46. .IP "\fB\-disk\fR" 15
  47. The \fB\-disk\fR option is used to create all the partitions for a scsi
  48. disk.  In this case the \fIdeviceName\fR is treated as a prefix, and
  49. 8 devices are made by appending the letters 'a' through 'h' to the prefix.
  50.  
  51. .IP "\fB\-rawDisk\fR" 15
  52. The \fB\-rawDisk\fR option is used to create all the partitions for a raw scsi
  53. disk.  
  54. A raw disk is accessed without referencing the disk label.
  55. In this case the \fIdeviceName\fR is treated as a prefix, and
  56. 8 devices are made by appending the letters 'a' through 'h' to the prefix.
  57. .IP "\fB\-tape\fR" 15
  58. The \fB\-tape\fR option is used to create a device file for a SCSI tape.
  59. .IP "\fB\-rawScsi\fR" 15
  60. The \fB\-rawScsi\fR option is used to create a device file for a raw 
  61. SCSI device.
  62. .IP "\fB\-specific \fIvalue\fR" 15
  63. 4 bits of the device unit number are device specific. 
  64. The \fB\-specific\fR option can be used to set those bits.
  65. option.
  66. .IP "\fB\-help\fR" 15
  67. Print a summary of the command-line options.
  68. .BE
  69.  
  70. .SH DESCRIPTION
  71. .PP
  72. \fBMkscsidev\fR is used to create SCSI devices.
  73. It is a user-friendly front end for the \fBfsmakedev\fR
  74. program.
  75. The \fB\-disk\fR option is probably the most useful. 
  76. It treats the \fIdeviceName\fR as a prefix and creates devices for all
  77. partitions of the disk.
  78. .SH EXAMPLES
  79. \fBmkscsidev \-hba 2 \-target 1 \-disk /dev/rsd21\fR creates the devices:
  80. .br
  81. /dev/rsd21a, /dev/rsd21b, /dev/rsd21c, /dev/rsd21d, /dev/rsd21e, /dev/rsd21f,
  82. /dev/rsd21g, and /dev/rsd21h,
  83. .br
  84. using the following calls to \fBfsmakedev\fR:
  85. .br
  86. fsmakedev -d 4 -u 2064 /dev/rsd21a
  87. .br
  88. fsmakedev -d 4 -u 2065 /dev/rsd21b
  89. .br
  90. fsmakedev -d 4 -u 2066 /dev/rsd21c
  91. .br
  92. fsmakedev -d 4 -u 2067 /dev/rsd21d
  93. .br
  94. fsmakedev -d 4 -u 2068 /dev/rsd21e
  95. .br
  96. fsmakedev -d 4 -u 2069 /dev/rsd21f
  97. .br
  98. fsmakedev -d 4 -u 2070 /dev/rsd21g
  99. .br
  100. fsmakedev -d 4 -u 2071 /dev/rsd21h
  101. .sp
  102. \fBmkscsidev \-server 10 \-devType 5 \-lun 1 \-specific 10 /dev/foo\fR produces the device /dev/foo using the following call to \fBfsmakedev\fR:
  103. .br
  104. fsmakedev -s 10 -d 5 -u 138 /dev/foo
  105. .SH KEYWORDS
  106. scsi, disk, partitions, fsmakedev, device
  107.  
  108.